<?php

namespace Laoha\Core\Sets;

use Encore\Admin\Widgets\Form;

class Basic extends Form
{
    
	/**
     * The form title.
     *
     * @var string
     */
	public $name = 'basic';
    public $title = '基本';

    /**
     * Build a form here.
     */
    public function form()
    {        
		$this->data = require(config_path('sets/'.$this->name.'.php'));
		$this->action(admin_base_path('laoha/set').'?active='.$this->name);

        //以下为实际设置区
		$this->switch('website_enable', '站点开关')->help('站点关闭后将不能访问，后台可正常登录');
        $this->text('website_title', '站点标题')->help("调用方式：config('sets.basic.website_title')");
        $this->text('website_slogan', '站点标语')->help("站点口号，调用方式：config('sete.basic.website_slogan')");
        $this->image('website_logo', '站点LOGO');
        $this->image('website_text_logo', '站点LOGO文字');
        $this->textarea('website_desc', '站点描述')->help('网站描述，有利于搜索引擎抓取相关信息');
        $this->text('website_keywords', '站点关键词')->help('网站搜索引擎关键字');
        $this->text('website_copyright', '版权信息')->help("调用方式：config('website_copyright')");
        $this->text('website_icp', '备案信息')->help("调用方式：config('website_icp')");
        $this->textarea('website_statistics', '网站统计代码')->help("网站统计代码，支持百度、Google、cnzz等，调用方式：config('website_statistics')");
    }
	
}
